package com.zdb.demo.design.pattern.structural.decorator.v2;

public class SausageDecorator extends AbstractBattercakeDecorator {
    public SausageDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    public void doSomething() {
        System.out.println("---- sausage ----");
    }

    @Override
    protected String getDesc() {
        return super.getDesc() + " 加一根香肠";
    }

    @Override
    protected int getCost() {
        return super.getCost() + 2;
    }
}
